#pragma once
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>

typedef int SLDateType;

typedef struct SeqList
{
	SLDateType* a;
	int size;
	int capacity;
}SeqList;

void SeqListInit(SeqList* ps);

void SeqListDestroy(SeqList* ps);

void SeqListPrint(SeqList* ps);

void SeqListPushBack(SeqList* ps, SLDateType x);

void SeqListPushFront(SeqList* ps, SLDateType x);

void SeqListPopBack(SeqList* ps);

void SeqListPopFront(SeqList* ps);

int SeqListFind(SeqList* ps, SLDateType x);

void SeqListInsert(SeqList* ps, int pos, SLDateType x);

void SeqListErase(SeqList* ps, int pos);
